<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('logmail/mailattachment/flexigrid') ?>',
                    colModel: [
						{display: '<?= translate('LOGMAIL_ROLEID') ?>', name: 'roleid', width: '100', process: formatSearch}, 
						{display: '<?= translate('LOGMAIL_PLATFORM_ID') ?>', name: 'platform_id', width: '100', hide:true},
                        {display: '<?= translate('LOGMAIL_DITCH_ID') ?>', name: 'ditch_id', width: '100', hide:true},
                        {display: '<?= translate('LOGMAIL_VERSION') ?>', name: 'version', width: '100', hide:true},
                        {display: '<?= translate('LOGMAIL_SERVER_ID') ?>', name: 'server_id', width: '100', hide:true}, 
                        {display: '<?= translate('LOGMAIL_ACCOUNT_ID') ?>', name: 'accountid', width: '100', process: formatSearch, hide:'true'},
                                                                      
                        {display: '<?= translate('LOGMAIL_IP_ADDRESS') ?>', name: 'ip_address', width: '100', process: formatSearch,hide:true},
                        {display: '<?= translate('LOGMAIL_ROLE_LEVEL') ?>', name: 'rolelevel', width: '100'},
                        //{display: '<?= translate('LOGMAIL_PROFESSION_TYPE') ?>', name: 'profession_type', width: '100'},
                        
                        {display: '<?= translate('LOGMAIL_ATTACHMENT_ID') ?>', name: 'attachment_id', width: '100'},
                        {display: '<?= translate('LOGMAIL_OBJECT_GUID') ?>', name: 'object_guid', width: '100'},
                        {display: '<?= translate('LOGMAIL_OBJECT_ID') ?>', name: 'object_type', width: '250'},
                        {display: '<?= translate('LOGMAIL_NUMBER') ?>', name: 'object_number', width: '100'},
                        {display: '<?= translate('LOGMAIL_WAY_TYPE') ?>', name: 'object_source', width: '300'},
                        {display: '<?= translate('LOGMAIL_OPERATION_TIME') ?>', name: 'operation_time', width: '150'},
                    ],
                  
		  			buttons: [ {separator: true},],
                }));
               
            });    
        </script>
    </body>
</html>